.auth-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e7eb 100%);
  position: relative;
  overflow: hidden;
}

.auth-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.7) 100%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><path d="M0,0 L100,0 L100,100 L0,100 Z" fill="none" stroke="rgba(0,0,0,0.03)" stroke-width="1"/></svg>') repeat;
  background-size: 100% 100%, 20px 20px;
  z-index: 0;
  animation: backgroundFade 8s ease-in-out infinite alternate;
}

@keyframes backgroundFade {
  0% {
    opacity: 0.95;
  }

  100% {
    opacity: 0.85;
  }
}

.auth-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.1) 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
  opacity: 0.1;
  z-index: 0;
}

.auth-card {
  width: 400px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  position: relative;
  z-index: 1;
  border: 1px solid rgba(0, 0, 0, 0.05);
  backdrop-filter: blur(5px);
  transform: translateY(0);
  transition: all 0.3s ease;
}

.auth-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.auth-header {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

.auth-header::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #1890ff, #40a9ff);
  border-radius: 3px;
  animation: lineWidth 2s ease-in-out infinite alternate;
}

@keyframes lineWidth {
  0% {
    width: 40px;
  }

  100% {
    width: 60px;
  }
}

.auth-title {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  margin-bottom: 8px;
  background: linear-gradient(90deg, #1890ff, #40a9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: titleColor 4s ease-in-out infinite alternate;
}

@keyframes titleColor {
  0% {
    background-position: 0% 50%;
  }

  100% {
    background-position: 100% 50%;
  }
}

.auth-subtitle {
  color: #666;
  font-size: 14px;
}

.auth-form {
  margin-top: 24px;
}

.auth-form-item {
  margin-bottom: 20px;
}

.auth-form-item .ant-input-affix-wrapper {
  padding: 10px 12px;
  border-radius: 6px;
  border: 1px solid #e8e8e8;
  transition: all 0.3s;
}

.auth-form-item .ant-input-affix-wrapper:hover {
  border-color: #40a9ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.1);
}

.auth-form-item .ant-input-affix-wrapper-focused {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.auth-form-item .ant-input-prefix {
  color: #999;
  font-size: 14px;
  transition: color 0.3s;
}

.auth-form-item .ant-input-affix-wrapper:hover .ant-input-prefix {
  color: #1890ff;
}

.auth-form-item .ant-input {
  font-size: 14px;
}

.auth-form-item .ant-btn {
  height: 40px;
  font-size: 14px;
  border-radius: 6px;
  margin-top: 8px;
  transition: all 0.3s;
}

.auth-form-item .ant-btn-primary {
  background: linear-gradient(90deg, #1890ff, #40a9ff);
  border: none;
  box-shadow: 0 2px 4px rgba(24, 144, 255, 0.2);
}

.auth-form-item .ant-btn-primary:hover {
  background: linear-gradient(90deg, #40a9ff, #1890ff);
  box-shadow: 0 4px 8px rgba(24, 144, 255, 0.3);
  transform: translateY(-1px);
}

.auth-footer {
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #f0f0f0;
}

.auth-footer a {
  color: #1890ff;
  font-weight: 500;
  transition: all 0.3s;
  position: relative;
}

.auth-footer a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #1890ff, #40a9ff);
  transition: width 0.3s;
}

.auth-footer a:hover::after {
  width: 100%;
}

.auth-tabs {
  margin-bottom: 24px;
}

.auth-tabs .ant-tabs-nav::before {
  border-bottom: none;
}

.auth-tabs .ant-tabs-nav {
  transition: transform 0.3s ease;
}

.auth-tabs .ant-tabs-tab {
  padding: 12px 24px;
  font-size: 14px;
  transition: transform 0.3s ease;
}

.auth-tabs .ant-tabs-tab-active {
  font-weight: 500;
  transform: translateY(-4px);
}

.auth-tabs .ant-tabs-ink-bar {
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, #1890ff, #40a9ff);
}

.auth-info-box {
  margin-top: 24px;
  padding: 16px;
  background: rgba(24, 144, 255, 0.05);
  border-radius: 6px;
  font-size: 13px;
  color: #666;
  border: 1px solid rgba(24, 144, 255, 0.1);
  transition: all 0.3s;
}

.auth-info-box:hover {
  background: rgba(24, 144, 255, 0.08);
  transform: translateY(-2px);
}

.auth-info-box p {
  margin: 4px 0;
}

@media (max-width: 480px) {
  .auth-card {
    width: 90%;
    padding: 24px;
  }

  .auth-title {
    font-size: 20px;
  }

  .auth-form-item .ant-input-affix-wrapper {
    padding: 8px 12px;
  }
}